package com.vancouver.knows.business.tracker;

import java.util.List;

import com.pangu.task.IResultReceiver;
import com.pangu.task.OperateResult;
import com.pangu.task.mark.ATaskMark;
import com.vancouver.knows.business.BusinessModule;

/**
 * 用户打开web页类
 * 
 * @author llf
 * 
 */
public class MyUserNoticeTracker extends ABInvokeTracker {

	public MyUserNoticeTracker(BusinessModule module, IResultReceiver resultReceiver) {
		super(module, resultReceiver);
	}

	@Override
	protected void handleTaskRefresh(ATaskMark taskMark, OperateResult result) {

	}

	@Override
	public String TAG() {
		return MyUserNoticeTracker.class.getSimpleName();
	}


	@SuppressWarnings("unchecked")
	@Override
	public void handleResult(OperateResult result) {
		List<Object>  listContent = (List<Object> ) result.getResultData();
		if (listContent == null)
			return;
		module.getCacheManager().setMyUserNotice(listContent);
		
	}
}
